<template>
  <h1>1.组件的基本写法</h1>
  <h1>count:{{count}}</h1>
  <button @click="changeCount">点击</button>
</template>

<script lang="ts">
import {defineComponent} from "vue"
export default defineComponent({
  name: "About",
})
</script>


<script lang="ts" setup>
 import {ref} from "vue"  
 let count = ref(0)

 console.log(count);
 
const changeCount = () => {
  count.value++;
};
</script>
<style scoped>
</style>